<?php
if (!defined("_ECRIRE_INC_VERSION")) return;

include_spip('functions/pdk_common');


/**
 *  Charging function
 */ 
function formulaires_ecatalogue_product_excel_import_charger_dist(){
	$valeurs = array();
	return $valeurs;
}

/**
 *  Validation function
 */
function formulaires_ecatalogue_product_excel_import_verifier_dist(){
	$erreurs = array();
	return $erreurs;
}

/**
 *  Processing function
 */
function formulaires_ecatalogue_product_excel_import_traiter_dist()
{ 
   if (isset($_POST['ids'])&&is_array($_POST['ids']))
   {
      foreach ($_POST['ids'] as $key=>$value) 
      {
          if ($value!='')
          {
              sql_update('spip_rubriques', array('id_import' => $value),'id_rubrique = '.$key);
          }	
      }
   
   }
}



?>